package com.xxx.blog.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xxx.user.domain.User;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

/**
 * Tb Article表
 * @TableName tb_article
 */
@Data
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("文章封面")
    private String articlePic;

    @ApiModelProperty("文章名称")
    private String articleName;

    @ApiModelProperty("文章标签")
    private String articleTag;

    @ApiModelProperty("文章类型")
    private Long articleType;

    @ApiModelProperty("文章状态(0:草稿;1:发布;2:弃用)")
    private Integer articleState;

    @ApiModelProperty("是否置顶(0:不置顶;1:置顶)")
    private Integer topState;

    @ApiModelProperty("作者ID")
    private Long publishId;

    @ApiModelProperty("发布时间")
    private Date createTime=new Date();

    @ApiModelProperty("修改时间")
    private Date updateTime=new Date();

    @ApiModelProperty("文章阅读量")
    private Integer articleReadCount=0;

    @ApiModelProperty("文章点赞数")
    private Integer articleStarNum=0;

    @ApiModelProperty("文章评论数")
    private Integer articleCommentNum=0;

    @ApiModelProperty("文章简介")
    private String articleRemark;

    @ApiModelProperty("文章内容")
    private String articleContent;

    //一对一关联
    @ApiModelProperty("文章类型对象")
    private ArticleType at;//null

    //一对一关联
    @ApiModelProperty("用户对象")
    private User user;

}